<?php
class moduleLogin {
	static function actionMain() {
		$user = fpsUser::get();

		json_out(0, $user);
	}

	static function actionDo() {
		//$timeout = 86400 * 30;
		$user = [
			'_id' => 6,
  			'name' => '谭荣棉'
		];
		fpsUser::set($user);

		self::actionMain();
	}

	static function actionLogout() {
		fpsUser::kick();
		json_out(0, 'OK');
	}
}